<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素显示模式</title>
    <style>
        div {
            width: 200px;
            height: 100px;
            border: 5px solid #f00;
            /*块级元素  允许设置宽高  竖着排*/
            display: block;
        }
        span {
            background-color: lime;
            display: block;
            /*行内元素  不允许设置宽高  横着排*/
            /*display: inline;*/
            width: 200px;
            height: 200px;

        }
        input,button {

            width: 100px;
            height: 50px;
            display: inline-block;/*行内块 允许设置宽高  横着排*/
        }
    .d2{
        /*display: none;*/ /*隐藏元素*/
        display: none;
    }

    </style>
</head>
<body>
<div class="d1">111</div>
<div class="d2">222</div>
<div class="d3">333</div>
<br>
<span>111111</span>
<span>222222</span>
<span>333333</span>
<hr>
<input type="text">
<input type="text">
<input type="text">
<button>按钮</button>

</body>
</html>